import 'package:gameplay_flutter/generated/json/base/json_field.dart';
import 'package:gameplay_flutter/generated/json/gift_record_dto_entity.g.dart';
import 'dart:convert';
export 'package:gameplay_flutter/generated/json/gift_record_dto_entity.g.dart';

@JsonSerializable()
class GiftRecordDtoEntity {
	late int pageNum = 0;
	late int pageSize = 0;
	late int size = 0;
	dynamic orderBy;
	late int startRow = 0;
	late int endRow = 0;
	late int total = 0;
	late int pages = 0;
	late List<GiftRecordDtoList> list = [];
	late int firstPage = 0;
	late int prePage = 0;
	late int nextPage = 0;
	late int lastPage = 0;
	late bool isFirstPage = false;
	late bool isLastPage = false;
	late bool hasPreviousPage = false;
	late bool hasNextPage = false;
	late int navigatePages = 0;
	late List<int> navigatepageNums = [];

	GiftRecordDtoEntity();

	factory GiftRecordDtoEntity.fromJson(Map<String, dynamic> json) => $GiftRecordDtoEntityFromJson(json);

	Map<String, dynamic> toJson() => $GiftRecordDtoEntityToJson(this);

	@override
	String toString() {
		return jsonEncode(this);
	}
}

@JsonSerializable()
class GiftRecordDtoList {
	late int fromUserId = 0;
	late String fromUserName = '';
	late String fromUserHeadUrl = '';
	late int targetUserId = 0;
	late String targetUserName = '';
	late String giftName = '';
	late int price = 0;
	late int charmValue = 0;
	late int amount = 0;
	late String createTime = '';
	late int group = 0;
	late String objectUrl = '';
	late int giftType = 0;
	late int giftSonType = 0;
	late int hotValue = 0;

	GiftRecordDtoList();

	factory GiftRecordDtoList.fromJson(Map<String, dynamic> json) => $GiftRecordDtoListFromJson(json);

	Map<String, dynamic> toJson() => $GiftRecordDtoListToJson(this);

	@override
	String toString() {
		return jsonEncode(this);
	}
}